#ifndef UPLOADIMAGE_H
#define UPLOADIMAGE_H

#include <QWidget>
#include <QMainWindow>
#include <QFileDialog>
#include <QHttpMultiPart>
#include <QJsonObject>
#include <QJsonParseError>
#include <QNetworkAccessManager>

namespace Ui {
class uploadImage;
}

class uploadImage : public QWidget
{
    Q_OBJECT

public:
    explicit uploadImage(QWidget *parent = nullptr);
    ~uploadImage();


    void creat(QString name);

    QString getResultImageUrl() const;

private slots:
    void deal(QNetworkReply* reply);

private:

    //上传后的图片网络地址
    QString resultImageUrl;

    //    Ui::uploadImage *ui;
    QNetworkAccessManager *networkAccessManager;
};

#endif // UPLOADIMAGE_H
